package edu.ucsd.ccdb.generalDataType;

public enum DataSectionType {
    ImageSetID ("Image Set ID"),
    ReconID ("Recon ID"),
    SegID ("Seg ID"),
    Undefined ("Undefined");

    private final String stringRepresent;

    private DataSectionType( String str ) {
        stringRepresent = str;
    }

    public String getToString() {
        return stringRepresent;
    }

    public static DataSectionType getType (String type) {

        if ( type.equalsIgnoreCase("Image Set ID") || type.equalsIgnoreCase("image_set_id") ){
            return DataSectionType.ImageSetID;
        }

        if ( type.equalsIgnoreCase("Recon ID") || type.equalsIgnoreCase("recon_id") ) {
            return DataSectionType.ReconID;
        }

        if ( type.equalsIgnoreCase("Seg ID") || type.equalsIgnoreCase("seg_id") ){
            return DataSectionType.SegID;
        }
        
        return DataSectionType.Undefined;
    }
}
